package _11;

public class UseDemo {
    public static void main(String[] args) {
        try {
            new Demo().div(8, 0);
        }catch (Exception e){
            System.out.println(e.toString());
            System.out.println(e.getMessage());
            e.printStackTrace();
        }finally{
            System.out.println("异常处理完毕，程序运行结束！");
        }
    }
}

class Demo{
    int div(int a, int b){
        return a/b;
    }
}
